/* Coding style ok */

#ifndef INIT_H_
#define INIT_H_

#define MAKE_DIR_IF_NOT_EXIST(dir) \
{                                                                       \
        if (!is_dir_exist(dir)) {                                       \
                if (is_file_exist(dir)) {                               \
                        /*alertpanel_warning                              \
                                (_("File `%s' already exists.\n"        \
                                   "Can't create folder."),             \
                                 dir);                                  \
                        exit(1);*/                                        \
                }                                                       \
                if (make_dir(dir) < 0)                                  \
                        exit(1);                                        \
        }                                                               \
}

#define CHDIR_EXIT_IF_FAIL(dir, val)    \
{                                       \
        if (change_dir(dir) < 0)        \
                exit(val);              \
}

#include "init.h"
#include "setup_gui.h"

int app_init(void);
void set_conf_dir(void);

#endif /*INIT_H_*/
